package com.example.dyxeapplication.menu.info;

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Toast;

import com.example.dyxeapplication.R;
import com.example.dyxeapplication.setting.temp;

public class Menu_Info extends Activity {
	@Override
	public void onCreate(Bundle icicle) {
		super.onCreate(icicle);
		setContentView(R.layout.menu_info);
		
		Toast.makeText(getApplicationContext(), "nama dan logo dapat di klik", Toast.LENGTH_SHORT).show();

	}

	public void visitWebsite(View view) {
		Intent browserIntent = null;

		switch (view.getId()) {

		case R.id.ditra:
			browserIntent = new Intent("android.intent.action.VIEW",
					Uri.parse(temp.URL_DITRA));
			break;
		case R.id.fifi:
			browserIntent = new Intent("android.intent.action.VIEW",
					Uri.parse(temp.URL_FIFI));
			break;
		case R.id.ella:
			browserIntent = new Intent("android.intent.action.VIEW",
					Uri.parse(temp.URL_ELLA));
			break;
		default:
			Log.e("Dyxe", "unexpected buttonclick");
			break;
		}

		if (browserIntent != null)
			startActivity(browserIntent);
	}

	public void menuEmail(View v) {
		Intent myIntent = new Intent(this, Contact.class);
		myIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
		startActivity(myIntent);
	}
}
